package org.dromara.finance.domain.bo;

import org.dromara.finance.domain.PurchaseInvoice;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.finance.domain.PurchaseInvoiceList;

import java.util.List;

/**
 * 采购发票业务对象 purchase_invoice
 *
 * @author xxy
 * @date 2025-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PurchaseInvoice.class, reverseConvertGenerate = false)
public class PurchaseInvoiceBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 采购合同id
     */
    @NotNull(message = "采购合同id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long purchaseContractId;

    private String purchaseContractNum;
    private String purchaseInvoiceNum;
    private String projectName;
    private Long supplierId;
    private Long transportSection;

    private List<PurchaseInvoiceListBo> purchaseInvoiceList;

    /**
     * 备注
     */
    private String remark;


}
